package com.ict.controller;


import com.ict.api.result.ApiResponse;
import com.ict.api.vo.IctOrderDetailVO;
import com.ict.service.IctOrderItemService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 订单商品明细表 前端控制器
 * </p>
 *
 * @author wjp
 * @since 2025-03-23
 */
@RestController
@RequestMapping("/ict-order-item")
public class IctOrderItemController {

    @Resource
    private IctOrderItemService orderItemService;

    @GetMapping("/{orderId}")
    public ApiResponse<IctOrderDetailVO> getOrderDetail(@PathVariable Long orderId) {
        return orderItemService.getOrderDetail(orderId);
    }

}

